/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ddbadmin.admin;

/**
 *
 * @author qixiao
 */
public class Constant {
    //local execute command and return the result, for example: select..
    public static final String LOCAL_COMMAND_RESULET = "localCommandResult";

    //local execute command and do not return the result, for example: createdb..
    public static final String LOCAL_COMMAND_NONRESULT = "localCommandNonResult";

    //remote execute command and return the resulte
    public static final String REMOTE_COMMAND_RESULTE = "remoteCommadResult";

    //remoete execute command and do not return the result
    public static final String REMOTE_COMMAND_NONRESULT = "remoteCommandNonResult";

    //fragment type
    public static final String DDB_FRAGMENT_HORIZONATALLY = "horizontally";
    public static final String DDB_FRAGMENT_VERTICALLLY = "vertically";
    public static final String DDB_FRAGMENT_UNKNOW = "unknowFragment";

    //common sql command
    public static final String DDB_DEFINESITE = "definesite";
    public static final String DDB_CREATEDB = "createdb";
    public static final String DDB_CREATETABLE = "createtable";
    public static final String DDB_SELECT = "select";
    public static final String DDB_WHERE = "where";
    public static final String DDB_DROP = "drop";
    public static final String DDB_DELETE = "delete";
    public static final String DDB_INSERT = "insert";
    public static final String DDB_FRAGMENT = "fragment";
    public static final String DDB_ALLOCATE = "allocate";
    public static final String DDB_IMPORT = "import";
    public static final String DDB_INITIALDATABASE = "initialDDB";
    public static final String DDB_INITIAL_PROPERTIES_FILE = "initialPropertiesFile";
    public static final String DDB_INITIAL_DATA_FILE = "initialDataFile";

    //Label of Query Tree node
    public static final String DDB_LABEL_SELECT = "select";
    public static final String DDB_LABEL_JOIN = "join";
    public static final String DDB_LABEL_PROJECT = "project";
    public static final String DDB_LABEL_TABLE = "table";
    
    //predicate type
    public static final String DDB_PREDICATE_ALLCOLUMNS = "allcolumns";

    //socket type
    public static final String DDB_SOCKET_STRING = "socketString";
    public static final String DDB_SOCKET_FILE = "socketFile";
    public static final String DDB_SOCKET_OBJECT = "socketObject";

    //record type
    public static final String DDB_RECORD_SINGLE = "singleRecord";
    public static final String DDB_RECORD_BATCH = "batchRecord";
}
